//
//  GoodsInfoModel.swift
//  GoodsInfoModel
//
//  Created by Ben on 2021/8/31.
//

import SwiftUI

#warning("商品数据, 在接入服务器后删除")
let DEFAULT_GOODSINFO_MODELS: [GoodsInfoModel] = [
        
]
struct GoodsInfoModel: Identifiable, Codable, Hashable {
    
    var id: Int?
    var name: String?
    var price: Int?
    var category_id: Int?
    var want_buy_count: Int?
    var url: String?
    var content: String?
    var create_time: String?
    
    var priceStr: String {
        return String(format: "%.2f", Float(price ?? 0) * 0.01)
    }
}
